<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('学生和证书关系的状态列表')" />
</head>
<body class="gray-bg">
<input name="studataCerId" id="studataCerId" th:value="${stuDataCer.studataCerId}" type="hidden">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/stuDataCer/reviewInfo";

        $(function() {
            var options = {
                url: prefix + "/list/" + $("#studataCerId").val(),
                modalName: "学生和证书关系的状态",
                cardView: false,
                singleSelect: false,
                columns: [{
                    checkbox: true
                },
                {
                    field: 'dataCerStateId',
                    title: '审核编号'
                },
                {
                    field: 'reviewStatus',
                    title: '审核状态',
                    formatter: function(value, item, index) {
		                if (item.reviewStatus == '0') {
		                    return '<span class="badge badge-warning">未审核</span>';
		                }
		                else if (item.reviewStatus == '1') {
		                    return '<span class="badge badge-info">审核中</span>';
		                }
		                else if (item.reviewStatus == '2') {
		                    return '<span class="badge badge-success">审核通过</span>';
		                }
		                else if (item.reviewStatus == '3') {
		                    return '<span class="badge badge-danger">审核未通过</span>';
		                }
		            }
                },
                {
                    field: 'reviewInfo',
                    title: '审核信息'
                },
                {
                    field: 'reviewBy',
                    title: '审核人'
                },
                {
                    field: 'reviewTime',
                    title: '审核时间'
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>